package ch.fhnw.qualiscan.core.db.pojos;

import java.io.Serializable;

/**
 * This pojo holds the information about the ternary association of surveys, users and roles. It is used by hibernate to get data out of the database.
 * @author Kevin Mettenberger
 *
 */
@SuppressWarnings("serial")
public class SurveyUserRole implements Serializable {
    
    private int id;
    private User user;
    private Survey survey;
    private Role role;
    private Role fillOutRole;
    
    
    public int getId() {
            return id;
    }
    
    public void setId(int id) {
            this.id = id;
    }
    
    public User getUser() {
            return user;
    }
    
    public void setUser(User user) {
            this.user = user;
    }
    
    public Survey getSurvey() {
            return survey;
    }
    
    public void setSurvey(Survey survey) {
            this.survey = survey;
    }
    
    public Role getRole() {
            return role;
    }
    
    public void setRole(Role role) {
            this.role = role;
    }

	public Role getFillOutRole() {
		return fillOutRole;
	}

	public void setFillOutRole(Role fillOutRole) {
		this.fillOutRole = fillOutRole;
	} 
    
    

}
